const { router } = require('../../koa/koa-main')
const { login } = require('../../services/login')

router.post('/login', async (ctx, next) => {
  const params = ctx.request.body
  const { data } = await login(params)
  ctx.response.body = data
  await next()
})

module.exports
